<html lang="zh-CN"><head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的商品</title>
    <link rel="stylesheet" href="/campustradingwall_war_exploded/css/style.css">
    <link rel="stylesheet" href="/campustradingwall_war_exploded/css/layout.css">
</head>
<body>

<div class="main-container">




<aside class="sidebar">
    <div class="sidebar-header">
        <h3>导航菜单</h3>
    </div>
    <nav class="sidebar-nav">
        <a href="/campustradingwall_war_exploded/" class="">首页</a>




                <a href="/campustradingwall_war_exploded/user/profile" class="">用户中心</a>
                <a href="/campustradingwall_war_exploded/user/products" class="">我的商品</a>
                <a href="/campustradingwall_war_exploded/user/orders" class="">我的订单</a>
                <a href="/campustradingwall_war_exploded/user/messages" class="">我的消息</a>


    </nav>
</aside>

    <main class="content-area">




<header class="main-header">
    <h1>沈阳工程学院二手交易市场</h1>
    <div class="header-user-actions">


                <a href="/campustradingwall_war_exploded/user/profile" class="header-link">
                    <img src="/campustradingwall_war_exploded/uploads/avatars/3_1749299526941_adbdac3fe0b3ccdf18dcbe541ae5515.jpg" alt="头像" class="header-avatar">
                    <span>李沂杭</span>
                </a>
                <a href="/campustradingwall_war_exploded/user/messages" class="header-link message-notification">
                    我的消息

                </a>
                <a href="/campustradingwall_war_exploded/logout" class="header-link">退出登录</a>



    </div>
</header>

        <div class="page-title">
            <h2>我的商品</h2>
        </div>

        <div class="profile-section">
            <h3>上传新商品</h3>
            <form action="/campustradingwall_war_exploded/user/addProduct" method="post" enctype="multipart/form-data">
                <div class="form-group">
                    <label for="name">商品名称</label>
                    <input type="text" id="name" name="name" class="form-control" required="">
                </div>
                <div class="form-group">
                    <label for="price">金额 (元)</label>
                    <input type="number" id="price" name="price" class="form-control" step="0.01" required="">
                </div>
                <div class="form-group">
                    <label for="description">基本信息 (如使用时间, 完好程度)</label>
                    <textarea id="description" name="description" class="form-control" rows="4" required=""></textarea>
                </div>
                <div class="form-group">
                    <label for="image">商品图片</label>
                    <input type="file" id="image" name="image" class="form-control-file" required="">
                </div>
                <button type="submit" class="btn">上架商品</button>
            </form>
        </div>

        <div class="profile-section">
            <h3>我已上架的商品</h3>
            <div class="product-list-user">


                    <div class="product-card-user">
                        <div class="product-image-user">
                            <img src="/campustradingwall_war_exploded/uploads/product_images/3_1755704557039_1ca185bb26518936d1e416b8c6aabe1.jpg" alt="反反复复">
                        </div>
                        <div class="product-info-user">
                            <h4>反反复复</h4>
                            <p class="price">¥ 200.00</p>
                            <p>状态: <span class="status-off_shelf">已下架</span></p>
                            <div class="product-actions-user">
                                <a href="/campustradingwall_war_exploded/user/editProduct?id=21" class="btn btn-secondary">编辑</a>



                                        <a href="/campustradingwall_war_exploded/user/productShelf?id=21&amp;action=shelf_on" class="btn btn-success" onclick="return confirm('确定要上架此商品吗？')">上架</a>


                                <a href="/campustradingwall_war_exploded/user/deleteProduct?id=21" class="btn btn-danger" onclick="return confirm('确定要删除此商品吗？删除后不可恢复！')">删除</a>
                            </div>
                        </div>
                    </div>

                    <div class="product-card-user">
                        <div class="product-image-user">
                            <img src="/campustradingwall_war_exploded/uploads/product_images/3_1755704352128_0.jfif" alt="很好">
                        </div>
                        <div class="product-info-user">
                            <h4>很好</h4>
                            <p class="price">¥ 222.00</p>
                            <p>状态: <span class="status-active">上架中</span></p>
                            <div class="product-actions-user">
                                <a href="/campustradingwall_war_exploded/user/editProduct?id=20" class="btn btn-secondary">编辑</a>


                                        <a href="/campustradingwall_war_exploded/user/productShelf?id=20&amp;action=shelf_off" class="btn btn-warning" onclick="return confirm('确定要下架此商品吗？')">下架</a>



                                <a href="/campustradingwall_war_exploded/user/deleteProduct?id=20" class="btn btn-danger" onclick="return confirm('确定要删除此商品吗？删除后不可恢复！')">删除</a>
                            </div>
                        </div>
                    </div>

                    <div class="product-card-user">
                        <div class="product-image-user">
                            <img src="/campustradingwall_war_exploded/uploads/product_images/3_1749301689878_f7e0dc4b78fdc32de9b2947edc58c97.jpg" alt="双层架">
                        </div>
                        <div class="product-info-user">
                            <h4>双层架</h4>
                            <p class="price">¥ 5.00</p>
                            <p>状态: <span class="status-active">上架中</span></p>
                            <div class="product-actions-user">
                                <a href="/campustradingwall_war_exploded/user/editProduct?id=19" class="btn btn-secondary">编辑</a>


                                        <a href="/campustradingwall_war_exploded/user/productShelf?id=19&amp;action=shelf_off" class="btn btn-warning" onclick="return confirm('确定要下架此商品吗？')">下架</a>



                                <a href="/campustradingwall_war_exploded/user/deleteProduct?id=19" class="btn btn-danger" onclick="return confirm('确定要删除此商品吗？删除后不可恢复！')">删除</a>
                            </div>
                        </div>
                    </div>

                    <div class="product-card-user">
                        <div class="product-image-user">
                            <img src="/campustradingwall_war_exploded/uploads/product_images/3_1749301652946_e475f71b217171a5aa881df3dd9aac3.jpg" alt="衬衫">
                        </div>
                        <div class="product-info-user">
                            <h4>衬衫</h4>
                            <p class="price">¥ 30.00</p>
                            <p>状态: <span class="status-active">上架中</span></p>
                            <div class="product-actions-user">
                                <a href="/campustradingwall_war_exploded/user/editProduct?id=18" class="btn btn-secondary">编辑</a>


                                        <a href="/campustradingwall_war_exploded/user/productShelf?id=18&amp;action=shelf_off" class="btn btn-warning" onclick="return confirm('确定要下架此商品吗？')">下架</a>



                                <a href="/campustradingwall_war_exploded/user/deleteProduct?id=18" class="btn btn-danger" onclick="return confirm('确定要删除此商品吗？删除后不可恢复！')">删除</a>
                            </div>
                        </div>
                    </div>

                    <div class="product-card-user">
                        <div class="product-image-user">
                            <img src="/campustradingwall_war_exploded/uploads/product_images/3_1749301617185_9c46d6899c5f71fde33ad39cf1a300c.jpg" alt="小灯棍">
                        </div>
                        <div class="product-info-user">
                            <h4>小灯棍</h4>
                            <p class="price">¥ 8.00</p>
                            <p>状态: <span class="status-active">上架中</span></p>
                            <div class="product-actions-user">
                                <a href="/campustradingwall_war_exploded/user/editProduct?id=17" class="btn btn-secondary">编辑</a>


                                        <a href="/campustradingwall_war_exploded/user/productShelf?id=17&amp;action=shelf_off" class="btn btn-warning" onclick="return confirm('确定要下架此商品吗？')">下架</a>



                                <a href="/campustradingwall_war_exploded/user/deleteProduct?id=17" class="btn btn-danger" onclick="return confirm('确定要删除此商品吗？删除后不可恢复！')">删除</a>
                            </div>
                        </div>
                    </div>

                    <div class="product-card-user">
                        <div class="product-image-user">
                            <img src="/campustradingwall_war_exploded/uploads/product_images/3_1749301566522_9238d277a55abdfe21fe14aaa9a1ee4.jpg" alt="意林">
                        </div>
                        <div class="product-info-user">
                            <h4>意林</h4>
                            <p class="price">¥ 2.00</p>
                            <p>状态: <span class="status-active">上架中</span></p>
                            <div class="product-actions-user">
                                <a href="/campustradingwall_war_exploded/user/editProduct?id=16" class="btn btn-secondary">编辑</a>


                                        <a href="/campustradingwall_war_exploded/user/productShelf?id=16&amp;action=shelf_off" class="btn btn-warning" onclick="return confirm('确定要下架此商品吗？')">下架</a>



                                <a href="/campustradingwall_war_exploded/user/deleteProduct?id=16" class="btn btn-danger" onclick="return confirm('确定要删除此商品吗？删除后不可恢复！')">删除</a>
                            </div>
                        </div>
                    </div>

                    <div class="product-card-user">
                        <div class="product-image-user">
                            <img src="/campustradingwall_war_exploded/uploads/product_images/3_1749299405039_1d6be5202bcdec89e2e429f4ae360f3.jpg" alt="二手电动车">
                        </div>
                        <div class="product-info-user">
                            <h4>二手电动车</h4>
                            <p class="price">¥ 500.00</p>
                            <p>状态: <span class="status-active">上架中</span></p>
                            <div class="product-actions-user">
                                <a href="/campustradingwall_war_exploded/user/editProduct?id=7" class="btn btn-secondary">编辑</a>


                                        <a href="/campustradingwall_war_exploded/user/productShelf?id=7&amp;action=shelf_off" class="btn btn-warning" onclick="return confirm('确定要下架此商品吗？')">下架</a>



                                <a href="/campustradingwall_war_exploded/user/deleteProduct?id=7" class="btn btn-danger" onclick="return confirm('确定要删除此商品吗？删除后不可恢复！')">删除</a>
                            </div>
                        </div>
                    </div>

                    <div class="product-card-user">
                        <div class="product-image-user">
                            <img src="/campustradingwall_war_exploded/uploads/product_images/3_1749299345915_carousel-1.jpg" alt="针线盒">
                        </div>
                        <div class="product-info-user">
                            <h4>针线盒</h4>
                            <p class="price">¥ 5.00</p>
                            <p>状态: <span class="status-active">上架中</span></p>
                            <div class="product-actions-user">
                                <a href="/campustradingwall_war_exploded/user/editProduct?id=6" class="btn btn-secondary">编辑</a>


                                        <a href="/campustradingwall_war_exploded/user/productShelf?id=6&amp;action=shelf_off" class="btn btn-warning" onclick="return confirm('确定要下架此商品吗？')">下架</a>



                                <a href="/campustradingwall_war_exploded/user/deleteProduct?id=6" class="btn btn-danger" onclick="return confirm('确定要删除此商品吗？删除后不可恢复！')">删除</a>
                            </div>
                        </div>
                    </div>

                    <div class="product-card-user">
                        <div class="product-image-user">
                            <img src="/campustradingwall_war_exploded/uploads/product_images/3_1749298517011_carousel-3.jpg" alt="耳机">
                        </div>
                        <div class="product-info-user">
                            <h4>耳机</h4>
                            <p class="price">¥ 5.00</p>
                            <p>状态: <span class="status-active">上架中</span></p>
                            <div class="product-actions-user">
                                <a href="/campustradingwall_war_exploded/user/editProduct?id=5" class="btn btn-secondary">编辑</a>


                                        <a href="/campustradingwall_war_exploded/user/productShelf?id=5&amp;action=shelf_off" class="btn btn-warning" onclick="return confirm('确定要下架此商品吗？')">下架</a>



                                <a href="/campustradingwall_war_exploded/user/deleteProduct?id=5" class="btn btn-danger" onclick="return confirm('确定要删除此商品吗？删除后不可恢复！')">删除</a>
                            </div>
                        </div>
                    </div>

            </div>
        </div>

    </main>
</div>


 </body></html>